/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entityBeans;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author allankv
 */
@Entity
@Table(name = "identificationqualifier")
@NamedQueries({
    @NamedQuery(name = "Identificationqualifier.findAll", query = "SELECT i FROM Identificationqualifier i"),
    @NamedQuery(name = "Identificationqualifier.findByIdidentificationqualifier", query = "SELECT i FROM Identificationqualifier i WHERE i.ididentificationqualifier = :ididentificationqualifier"),
    @NamedQuery(name = "Identificationqualifier.findByIdentificationqualifier", query = "SELECT i FROM Identificationqualifier i WHERE i.identificationqualifier = :identificationqualifier")})
public class Identificationqualifier implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ididentificationqualifier")
    private Integer ididentificationqualifier;
    @Basic(optional = false)
    @Column(name = "identificationqualifier")
    private String identificationqualifier;
    @OneToMany(mappedBy = "identificationqualifier", fetch = FetchType.LAZY)
    private List<Identificationelement> identificationelementList;

    public Identificationqualifier() {
    }

    public Identificationqualifier(Integer ididentificationqualifier) {
        this.ididentificationqualifier = ididentificationqualifier;
    }

    public Identificationqualifier(Integer ididentificationqualifier, String identificationqualifier) {
        this.ididentificationqualifier = ididentificationqualifier;
        this.identificationqualifier = identificationqualifier;
    }

    public Integer getIdidentificationqualifier() {
        return ididentificationqualifier;
    }

    public void setIdidentificationqualifier(Integer ididentificationqualifier) {
        this.ididentificationqualifier = ididentificationqualifier;
    }

    public String getIdentificationqualifier() {
        return identificationqualifier;
    }

    public void setIdentificationqualifier(String identificationqualifier) {
        this.identificationqualifier = identificationqualifier;
    }

    public List<Identificationelement> getIdentificationelementList() {
        return identificationelementList;
    }

    public void setIdentificationelementList(List<Identificationelement> identificationelementList) {
        this.identificationelementList = identificationelementList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (ididentificationqualifier != null ? ididentificationqualifier.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Identificationqualifier)) {
            return false;
        }
        Identificationqualifier other = (Identificationqualifier) object;
        if ((this.ididentificationqualifier == null && other.ididentificationqualifier != null) || (this.ididentificationqualifier != null && !this.ididentificationqualifier.equals(other.ididentificationqualifier))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entityBeans.Identificationqualifier[ididentificationqualifier=" + ididentificationqualifier + "]";
    }

}
